home *** CD-ROM | disk | FTP | other *** search
- LGE(3I) Last changed: 4-13-99
-
-
- NNAAMMEE
- LLGGEE, LLGGTT, LLLLEE, LLLLTT - Compares strings lexically
-
- SSYYNNOOPPSSIISS
- LLGGEE (([SSTTRRIINNGG__AA==]_s_t_r_i_n_g__a,, [SSTTRRIINNGG__BB==]_s_t_r_i_n_g__b))
-
- LLGGTT (([SSTTRRIINNGG__AA==]_s_t_r_i_n_g__a,, [SSTTRRIINNGG__BB==]_s_t_r_i_n_g__b))
-
- LLLLEE (([SSTTRRIINNGG__AA==]_s_t_r_i_n_g__a,, [SSTTRRIINNGG__BB==]_s_t_r_i_n_g__b))
-
- LLLLTT (([SSTTRRIINNGG__AA==]_s_t_r_i_n_g__a,, [SSTTRRIINNGG__BB==]_s_t_r_i_n_g__b))
-
- IIMMPPLLEEMMEENNTTAATTIIOONN
- UNICOS, UNICOS/mk, IRIX systems
-
- CF90, MIPSpro 7 Fortran 90, MIPSpro Fortran 77
-
- SSTTAANNDDAARRDDSS
- Fortran
-
- DDEESSCCRRIIPPTTIIOONN
- Each of these type logical functions takes two character string
- arguments and returns a logical value. _s_t_r_i_n_g__a and _s_t_r_i_n_g__b are
- compared according to the ASCII collating sequence, and the resulting
- true or false value is returned.
-
- _s_t_r_i_n_g__a and _s_t_r_i_n_g__b Must be of type default character
-
- The defining equation for each function is as follows:
-
- * For LLGGEE, logic = _a is greater than or equal to _a
- 1 2
- * For LLGGTT, logic = _a is greater than _a
- 1 2
- * For LLLLEE, logic = _a is less than or equal to _a
- 1 2
- * For LLLLTT, logic = _a is less than _a
- 1 2
- LLGGEE, LLGGTT, LLLLEE, and LLLLTT are elemental functions. The names of these
- intrinsics cannot be passed as arguments.
-
- RREETTUURRNN VVAALLUUEESS
- If the strings are of unequal length, the comparison is made as if the
- shorter string were extended on the right with blanks to the length of
- the longer string. The return value of each intrinsic is as follows:
-
- * LLGGEE. The result is true if the strings are equal or if _s_t_r_i_n_g__a
- follows _s_t_r_i_n_g__b in the ASCII collating sequence; otherwise, the
- result is false. Note that the result is true if both _s_t_r_i_n_g__a and
- _s_t_r_i_n_g__b are of equal length; this includes zero-length strings.
-
- * LLGGTT. The result is true if _s_t_r_i_n_g__a follows _s_t_r_i_n_g__b in the ASCII
- collating sequence; otherwise, it is false. The result is false if
- both _s_t_r_i_n_g__a and _s_t_r_i_n_g__b are of zero length.
-
- * LLLLEE. The result is true if the strings are equal or if _s_t_r_i_n_g__a
- precedes _s_t_r_i_n_g__b in the ASCII collating sequence; otherwise, it is
- false. Note that the result is true if both _s_t_r_i_n_g__a and _s_t_r_i_n_g__b
- are of equal length; this includes zero-length strings.
-
- * LLLLTT. The result is true if _s_t_r_i_n_g__a precedes _s_t_r_i_n_g__b in the ASCII
- collating sequence; otherwise, it is false. The result is false if
- both _s_t_r_i_n_g__a and _s_t_r_i_n_g__b are of zero length.
-
- NNOOTTEESS
- When using the MIPSpro Fortran 77 compiler, the --ii22 command line
- option can affect the size of the value returned.
-
- When using the CF90 or MIPSpro 7 Fortran 90 compilers, the return
- value is of type default logical.
-
- SSEEEE AALLSSOO
- _I_n_t_r_i_n_s_i_c _P_r_o_c_e_d_u_r_e_s _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l for the printed version of this
- man page.
-